{extend name="base" /}
{block name="title"}代录人名单{/block}
{block name="static"}
<link rel="stylesheet" type="text/css" media="screen" href="/static/pc/css/select.css"/>
{/block}
{block name="bread"}
<div class="bread-cram">
  <div class="bread-cram-inner">
    <span class="title">保险公司使用</span>
    <span class="sub-title">- 代录人名单</span>
  </div>
</div>
{/block}

{block name="main"}


          <div class="menu-content left">
            <ul class="rep-recorder-list">

              {volist name="list" id="vo"}
              <li class="rep-recorder-list-item">
                <div class="left">
                  <p>姓名：{$vo.username}<span>手机：{$vo.mobile}</span></p>
                  <p>代录人类型：{$vo.recoder_name}</p>
                </div>
                <div class="right">
                  <button class="del" onclick="deleteInfo({$vo.recordor_id},this)">删除</button>
                  <button class="edit">修改</button>
                </div>
              </li>
              {/volist}

            </ul>
            <div class="add-recorder-btn">添加</div>
          </div>
          <div class="clear"></div>

{/block}
{block name="js"}
  <script type="text/javascript">
      function deleteInfo(id,This) {
          layer.confirm('确定要删除吗？', {
              btn: ['确定','取消'] //按钮
          },function(){
               $.ajax({
                   type: 'POST',
                   url: '/wx/Insurer/unbindOther',
                   data: {
                       'recordor_id': id,
                   },
                   dataType: 'json',
                   success: function (Json) {
                       if (Json.code == 200) {
                           layer.msg('删除成功', {icon: 1});
                           $(This).parent().parent().remove();
                       } else {
                           layer.msg('删除失败', {icon: 2});
                       }
                   }
               });
          }, function(){
          });
      }
  </script>
{/block}

